package com.java.util;

/**
 * 匿名内部类的使用示例
 *
 */
public class ClassTest03 {

    public static void main(String[] args) {
        AbstractClass abstractClass = new AbstractClass() {
            @Override
            void display() {
                System.out.println("Hello from the anonymous class!");
            }
        };

        abstractClass.display();

    }


}

abstract class AbstractClass {

    abstract void display();
}
